dojo.provide("ctrlspace.ui.tools.ShortcutDialog");
dojo.require("dijit.TooltipDialog");
dojo.declare("ctrlspace.ui.tools.ShortcutDialog", dijit.TooltipDialog, {
	
	constructor: function(/* Object */ options) {
		this.tabIndex = 0;
		this.content = '';
		this.content += '<table border="0" style="-moz-border-radius: 5px; background-color: #DEDEDE; border: 3px solid #EDEDED" cellspacing="0" cellpadding="0">';
		this.content += '<tr><td>';
		this.content += '<img width="128" height="128" src="images/terminal.png" border="0" title="Console" />';
		this.content += '</td>';
		this.content += '<td><img width="128" height="128" src="images/markers.png" border="0" title="Markersc" />';
		this.content += '</td>';
		this.content += '</tr>';
		this.content += '<tr><td style="text-align: center; font-size: 18px; font-weight: bold;">C</td><td style="text-align: center; font-size: 18px; font-weight: bold;">M</td></tr>';
		this.content += '</table>';
	},
	
	postCreate: function(/* Object*/ args) {
		dojo.connect(this.domNode, "onkeypress", dojo.hitch(this, this.onKeyPress));
		dojo.connect(this.domNode, "onblur", dojo.hitch(this, this.onBlur));
	},
	
	onBlur: function() {
		this.onCancel();
	},
	
	onKeyPress: function(event) {
		this.onExecute();
	},
	
	onExecute: function() {
	},
	
	onCancel: function() {
	}

});